# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-filehandle-unget
_cpanname=FileHandle-Unget
pkgver=0.1623
pkgrel=1
pkgdesc="FileHandle which supports multi-byte unget "
arch=('any')
url="http://search.cpan.org/~DCOPPIT/${_cpanname}"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/D/DC/DCOPPIT/${_cpanname}-${pkgver}.tar.gz) 
md5sums=('27df2a78e60e30b1950bbf41740eae13')

build() {
  cd $srcdir/${_cpanname}-${pkgver}
  sed -i '/^auto_install/d' Makefile.PL
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor 
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
